<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>计算斐波那契数列</title>
</head>

<body>
    <script>
        function fibo(n) {
            if (n < 1) return 0;
            if (n <= 2) return 1;

            return fibo(n - 1) + fibo(n - 2);
        }

        alert(fibo(60));
    </script>
</body>

</html>